import json

from config import BASE_DIR


def read_data(filename):
    with open(BASE_DIR + f'/data/{filename}', encoding='utf-8') as f:
        r = json.load(f)

    data = []
    for i in r:
        i.pop('desc') # 这个数据可以保留，可以不要
        data.append(tuple(i.values()))

    return data


if __name__ == '__main__':
    d = read_data('ihrm_emp_add.json')
    print(d)
